package com.cloud.api.domain.tsp;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.api.myenum.ExecuteStatus;
import com.cloud.core.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-30
 */
@Getter
@Setter
@TableName("t_command_exec_history")
@Schema(name = "CommandExecHistory", description = "历史命令")
public class CommandExecHistory extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "vin")
    @TableField("vin")
    private String vin;

    @Schema(description = "下发命令")
    @TableField("command")
    private String command;

    @Schema(description = "指令code")
    @TableField(exist = false)
    private String commandCode;

    @Schema(description = "状态")
    @TableField("status")
    private ExecuteStatus status;

    @Schema(description = "ip")
    @TableField("ip")
    private String ip;

    @Schema(description = "did")
    @TableField(exist = false)
    @JsonIgnore
    private String did;

}
